Partial Function vs. Lambda in Python